package com.fortune.dto.in.cOrderMgt;

import com.fortune.constants.enums.OrderCreat;
import com.fortune.constants.enums.OrderOther;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * TODO c_order_base_info
 * @author ran
 *
 */
public class COrderEditDto{
    @NotBlank(message="订单id不能为空")
    @ApiModelProperty(required=true, example="订单id")
    private String ordersId;
    @NotBlank(message="客户id不能为空")
    @ApiModelProperty(required=true, example="客户id")
    private String id;
    @NotBlank(message="订单编号不能为空")
    @ApiModelProperty(required=true, example="订单编号")
    private String no;
    @NotNull(message="开单日期不能为空")
    @ApiModelProperty(example="开单日期(2016-07-06 10:17:48)")
    private Date createTime;
    @NotNull(message="开单方(经销商)不能为空")
    @ApiModelProperty(required=true, example="开单方(JXS经销商)")
    private OrderCreat createType;
    @NotBlank(message="开单人ID不能为空")
    @ApiModelProperty(required=true, example="开单人ID")
    private String createUser;
    @NotNull(message="商品总金额不能为空")
    @ApiModelProperty(required=true, example="商品总金额")
    private BigDecimal pTotalPrice;
    @NotNull(message="押金总金额不能为空")
    @ApiModelProperty(required=true, example="押金总金额")
    private BigDecimal dTotalPrice;
    @NotNull(message="是否已付款不能为空")
    @ApiModelProperty(required=true, example="是否已付款('YES','NO')")
    private OrderOther pay;
    @NotNull(message="付款日期不能为空")
    @ApiModelProperty(example="付款日期(2016-07-06 10:17:48)")
    private Date payTime;
    @NotNull(message="付款方式ID不能为空")
    @ApiModelProperty(example="付款方式ID")
    private String payTypeId;
    private List<COrderProduceDto> produce;

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public OrderCreat getCreateType() {
        return createType;
    }

    public void setCreateType(OrderCreat createType) {
        this.createType = createType;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public BigDecimal getpTotalPrice() {
        return pTotalPrice;
    }

    public void setpTotalPrice(BigDecimal pTotalPrice) {
        this.pTotalPrice = pTotalPrice;
    }

    public BigDecimal getdTotalPrice() {
        return dTotalPrice;
    }

    public void setdTotalPrice(BigDecimal dTotalPrice) {
        this.dTotalPrice = dTotalPrice;
    }

    public OrderOther getPay() {
        return pay;
    }

    public void setPay(OrderOther pay) {
        this.pay = pay;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayTypeId() {
        return payTypeId;
    }

    public void setPayTypeId(String payTypeId) {
        this.payTypeId = payTypeId;
    }

    public List<COrderProduceDto> getProduce() {
        return produce;
    }

    public void setProduce(List<COrderProduceDto> produce) {
        this.produce = produce;
    }

    @Override
    public String toString() {
        return "COrderEditDto{" +
                "ordersId='" + ordersId + '\'' +
                ", id='" + id + '\'' +
                ", no='" + no + '\'' +
                ", createTime=" + createTime +
                ", createType=" + createType +
                ", createUser='" + createUser + '\'' +
                ", pTotalPrice=" + pTotalPrice +
                ", dTotalPrice=" + dTotalPrice +
                ", pay=" + pay +
                ", payTime=" + payTime +
                ", payTypeId='" + payTypeId + '\'' +
                ", produce=" + produce +
                '}';
    }
}
